<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@page import="java.util.Enumeration"%><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body onload="play()">

<% 



Enumeration names = request.getHeaderNames(); 
while(names.hasMoreElements()){
	String name = names.nextElement().toString();
	out.println(name+"<br>");
}

out.println("语言"+request.getHeader("accept-language")+"<BR>");

out.println("useragent:"+request.getHeader("user-agent")+"<BR>");
java.util.Locale locale = request.getLocale();
out.println("语言"+locale.getLanguage()+"<BR>");
%>
<%=request.getLocale().toString()%><br>
<%=java.util.TimeZone.getTimeZone(request.getLocale().toString()).getRawOffset()/1000/60/60%>
<script>

function play(){
	var player = document.getElementById("wav_alert");//document.embeds["wav_alert"];
	player.src = "";
	player.src = "images/alarm.wav";

	player = document.getElementById("sss");
	player.src="images/alarm.wav";
	//document.getElementById("wav_alert").Play("images/alarm.wav");
	
}

var a = "fdsfd";
if(a){
	var b  = "ok";
}
alert(!b);
</script>

<%=request.getRequestURI() +request.getContextPath() %>


</body>
</html>